#!/usr/bin/perl
##
# @param $1 emdRoot ( agent home )
# @param $2 target name ( instance name )
# @param $3 target type ( for example mysql_mysql_database )
#
use strict;
my ($emdRoot,$targetName,$targetType) = @ARGV;

my $SQL="show status like 'slave_running'";
my @ret=`$emdRoot/bin/emctl reload agent dynamicproperties $targetName:$targetType`;

chomp(@ret);

print "em_result=$ret[$#ret]\n";

exit 0
